<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="style_js/ligerUI/skins/Aqua/css/ligerui-all.css">
    <link rel="stylesheet" type="text/css" href="style_js/ligerUI/skins/ligerui-icons.css">
    <link rel="stylesheet" type="text/css" href="style_js/artDialog/skins/default.css">
    <link rel="stylesheet" type="text/css" href="style_js/Validation/css/validationEngine.jquery.css">
    <link rel="stylesheet" type="text/css" href="style_css/default.css">
</head>
<body>
<div class="aui_state_focus" style="position: absolute; left: -9999em; top: 272px; width: auto; z-index: 1987;">
    <div class="aui_outer">
        <table class="aui_border">
            <tbody>
            <tr>
                <td class="aui_nw"></td>
                <td class="aui_n"></td>
                <td class="aui_ne"></td>
            </tr>
            <tr>
                <td class="aui_w"></td>
                <td class="aui_c">
                    <div class="aui_inner">
                        <table class="aui_dialog">
                            <tbody>
                            <tr>
                                <td colspan="2" class="aui_header">
                                    <div class="aui_titleBar">
                                        <div class="aui_title" style="cursor: move;">消息</div>
                                        <a class="aui_close" href="javascript:/*artDialog*/;">×</a></div>
                                </td>
                            </tr>
                            <tr>
                                <td class="aui_icon" style="display: none;">
                                    <div class="aui_iconBg" style="background: none;"></div>
                                </td>
                                <td class="aui_main" style="width: auto; height: auto;">
                                    <div class="aui_content" style="padding: 20px 25px;">
                                        <div class="aui_loading"><span>loading..</span></div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="aui_footer">
                                    <div class="aui_buttons" style="display: none;"></div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </td>
                <td class="aui_e"></td>
            </tr>
            <tr>
                <td class="aui_sw"></td>
                <td class="aui_s"></td>
                <td class="aui_se" style="cursor: se-resize;"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<form id="formsearch" name="formsearch" style="margin:0;padding:0">
    <table width="100%" class="tabledetail" border="0">
        <tbody>
        <tr>
            <td class="q-td-right">
                样本编号：
            </td>
            <td class="q-td-left">
                <input id="samplestrings" name="samplestrings" type="text" class="validate[funcCall[equalsLen]]">&nbsp;&nbsp;
                <input id="samplestringe" name="samplestringe" type="text" class="validate[funcCall[equalsLen]]">
            </td>
            <td class="q-td-right">
                样本条码：
            </td>
            <td class="q-td-left">
                <input id="barcodes" name="barcodes" type="text" class="validate[funcCall[equalsLen]]">&nbsp;&nbsp;
                <input id="barcodee" name="barcodee" type="text" class="validate[funcCall[equalsLen]]">
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <div class="q-button-back q-button-footer">
                    <button class="q-button" type="button" onclick="TableSearch()">查询</button>
                    &nbsp;&nbsp;&nbsp;
                    <button class="q-button" type="button" onclick="formsearch.reset()">清空</button>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</form>
<div id="divToolbar" class="l-toolbar" ligeruiid="divToolbar">
    <div class="l-toolbar-item l-panel-btn l-toolbar-item-hasicon" toolbarid="accept"><span>验收</span>
        <div class="l-panel-btn-l"></div>
        <div class="l-panel-btn-r"></div>
        <div class="l-icon l-icon-accept"></div>
    </div>
    <div class="l-bar-separator"></div>
    <div class="l-toolbar-item l-panel-btn l-toolbar-item-hasicon" toolbarid="refresh"><span>刷新</span>
        <div class="l-panel-btn-l"></div>
        <div class="l-panel-btn-r"></div>
        <div class="l-icon l-icon-refresh"></div>
    </div>
</div>
<div id="divGrid" class="l-panel" ligeruiid="divGrid" style="width: auto;">
    <div class="l-panel-header" style="display: none;"><span class="l-panel-header-text"></span></div>
    <div class="l-grid-loading" style="display: none;">加载中...</div>
    <div class="l-clear"></div>
    <div class="l-panel-bwarp">
        <div class="l-panel-body">
            <div class="l-grid" id="divGridgrid" style="height: 717.64px;">
                <div class="l-grid-dragging-line"></div>
                <div class="l-grid-popup">
                    <table cellpadding="0" cellspacing="0">
                        <tbody>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="3"
                                        ligeruiid="CheckBox1006"></div>
                            </td>
                            <td class="l-column-right">批编号</td>
                        </tr>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="4"
                                        ligeruiid="CheckBox1007"></div>
                            </td>
                            <td class="l-column-right">递送单号</td>
                        </tr>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="5"
                                        ligeruiid="CheckBox1008"></div>
                            </td>
                            <td class="l-column-right">数量</td>
                        </tr>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="6"
                                        ligeruiid="CheckBox1009"></div>
                            </td>
                            <td class="l-column-right">部门名称</td>
                        </tr>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="7"
                                        ligeruiid="CheckBox1010"></div>
                            </td>
                            <td class="l-column-right">递送人</td>
                        </tr>
                        <tr>
                            <td class="l-column-left">
                                <div class="l-checkbox-wrapper"><a class="l-checkbox l-checkbox-checked"></a><input
                                        type="checkbox" checked="checked" class="l-checkbox l-hidden" columnindex="8"
                                        ligeruiid="CheckBox1011"></div>
                            </td>
                            <td class="l-column-right">递送时间</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="l-grid1">
                    <div class="l-grid-header l-grid-header1" style="height: 23px;">
                        <div class="l-grid-header-inner">
                            <table class="l-grid-header-table" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr class="l-grid-hd-row"></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="l-grid-body l-grid-body1" style="height: 695.64px;"></div>
                </div>
                <div class="l-grid2">
                    <div class="l-grid-header l-grid-header2" style="height: 23px;">
                        <div class="l-grid-header-inner" style="width: 1597px;">
                            <table class="l-grid-header-table" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr class="l-grid-hd-row">
                                    <td class="l-grid-hd-cell l-grid-hd-cell-rownumbers" id="divGrid|hcell|c101"
                                        columnindex="0" style="height: 23px; width: 26px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"></div>
                                    </td>
                                    <td class="l-grid-hd-cell l-grid-hd-cell-detail" id="divGrid|hcell|c102"
                                        columnindex="1" style="height: 23px; width: 29px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;">
                                            <div class="l-grid-hd-cell-text l-grid-hd-cell-btn-detail">&nbsp;</div>
                                        </div>
                                    </td>
                                    <td class="l-grid-hd-cell l-grid-hd-cell-checkbox" id="divGrid|hcell|c103"
                                        columnindex="2" style="height: 23px; width: 29px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;">
                                            <div class="l-grid-hd-cell-text l-grid-hd-cell-btn-checkbox">&nbsp;</div>
                                        </div>
                                    </td>
                                    <td class="l-grid-hd-cell" id="divGrid|hcell|c104" columnindex="3"
                                        columnname="batchnum" style="height: 23px; width: 150px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">批编号</span></div>
                                    </td>
                                    <td class="l-grid-hd-cell" id="divGrid|hcell|c105" columnindex="4"
                                        columnname="batchnum" style="height: 23px; width: 120px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">递送单号</span></div>
                                    </td>
                                    <td class="l-grid-hd-cell" id="divGrid|hcell|c106" columnindex="5"
                                        columnname="subnum" style="height: 23px; width: 298px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">数量</span></div>
                                    </td>
                                    <td class="l-grid-hd-cell" id="divGrid|hcell|c107" columnindex="6"
                                        columnname="departmentname" style="height: 23px; width: 298px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">部门名称</span></div>
                                    </td>
                                    <td class="l-grid-hd-cell" id="divGrid|hcell|c108" columnindex="7"
                                        columnname="employeename" style="height: 23px; width: 298px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">递送人</span></div>
                                    </td>
                                    <td class="l-grid-hd-cell l-grid-hd-cell-last" id="divGrid|hcell|c109"
                                        columnindex="8" columnname="operattime" style="height: 23px; width: 300px;">
                                        <div class="l-grid-hd-cell-inner" style="height: 23px;"><span
                                                class="l-grid-hd-cell-text">递送时间</span></div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="l-grid-body l-grid-body2 l-scroll" style="height: 695.64px;">
                        <div class="l-grid-body-inner" style="width: 1557px;">
                            <!-- <table class="l-grid-body-table" cellpadding="0" cellspacing="0">-->
                            <table class="no-headers-in-tbody" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr id="divGrid|2|r1001" class="l-grid-row">
                                    <td id="divGrid|2|r1001|c101" class="l-grid-row-cell l-grid-row-cell-rownumbers"
                                        style="width:26px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;">1</div>
                                    </td>
                                    <td id="divGrid|2|r1001|c102" class="l-grid-row-cell l-grid-row-cell-detail"
                                        style="width:29px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;"><span
                                                class="l-grid-row-cell-detailbtn"></span></div>
                                    </td>
                                    <td id="divGrid|2|r1001|c103" class="l-grid-row-cell l-grid-row-cell-checkbox"
                                        style="width:29px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;"><span
                                                class="l-grid-row-cell-btn-checkbox"></span></div>
                                    </td>
                                    <td id="divGrid|2|r1001|c104" class="l-grid-row-cell " style="width:150px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:142px;height:22px;min-height:22px; text-align:left;">
                                            S2021080322592
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1001|c105" class="l-grid-row-cell " style="width:120px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:112px;height:22px;min-height:22px; text-align:left;">
                                            S2021080322592
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1001|c106" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">1
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1001|c107" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">妇保院
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1001|c108" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">妇保院账号
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1001|c109" class="l-grid-row-cell l-grid-row-cell-last "
                                        style="width:300px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:292px;height:22px;min-height:22px; text-align:left;">
                                            2021-08-03 12:34:33
                                        </div>
                                    </td>
                                </tr>
                                <tr id="divGrid|2|r1002" class="l-grid-row l-grid-row-alt">
                                    <td id="divGrid|2|r1002|c101" class="l-grid-row-cell l-grid-row-cell-rownumbers"
                                        style="width:26px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;">2</div>
                                    </td>
                                    <td id="divGrid|2|r1002|c102" class="l-grid-row-cell l-grid-row-cell-detail"
                                        style="width:29px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;"><span
                                                class="l-grid-row-cell-detailbtn"></span></div>
                                    </td>
                                    <td id="divGrid|2|r1002|c103" class="l-grid-row-cell l-grid-row-cell-checkbox"
                                        style="width:29px">
                                        <div class="l-grid-row-cell-inner" style="height:22px;"><span
                                                class="l-grid-row-cell-btn-checkbox"></span></div>
                                    </td>
                                    <td id="divGrid|2|r1002|c104" class="l-grid-row-cell " style="width:150px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:142px;height:22px;min-height:22px; text-align:left;">
                                            S202110084745
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1002|c105" class="l-grid-row-cell " style="width:120px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:112px;height:22px;min-height:22px; text-align:left;">
                                            S202110084745
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1002|c106" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">2
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1002|c107" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">妇保院
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1002|c108" class="l-grid-row-cell " style="width:298px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:290px;height:22px;min-height:22px; text-align:left;">妇保院账号
                                        </div>
                                    </td>
                                    <td id="divGrid|2|r1002|c109" class="l-grid-row-cell l-grid-row-cell-last "
                                        style="width:300px;  ">
                                        <div class="l-grid-row-cell-inner"
                                             style="width:292px;height:22px;min-height:22px; text-align:left;">
                                            2021-10-08 18:23:12
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="l-panel-bar" style="display: none;">
        <div class="l-panel-bbar-inner">
            <div class="l-bar-group  l-bar-message"><span class="l-bar-text">显示从0到0，总 0 条 。每页显示：10</span></div>
            <div class="l-bar-group l-bar-selectpagesize"></div>
            <div class="l-bar-separator"></div>
            <div class="l-bar-group">
                <div class="l-bar-button l-bar-btnfirst"><span class="l-disabled"></span></div>
                <div class="l-bar-button l-bar-btnprev"><span class="l-disabled"></span></div>
            </div>
            <div class="l-bar-separator"></div>
            <div class="l-bar-group"><span class="pcontrol"> <input type="text" size="4" value="1" style="width:20px"
                                                                    maxlength="3"> / <span>1</span></span></div>
            <div class="l-bar-separator"></div>
            <div class="l-bar-group">
                <div class="l-bar-button l-bar-btnnext"><span class="l-disabled"></span></div>
                <div class="l-bar-button l-bar-btnlast"><span class="l-disabled"></span></div>
            </div>
            <div class="l-bar-separator"></div>
            <div class="l-bar-group">
                <div class="l-bar-button l-bar-btnload"><span class=""></span></div>
            </div>
            <div class="l-bar-separator"></div>
            <div class="l-clear"></div>
        </div>
    </div>
</div>


<script type="text/javascript" src="style_js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="style_js/jquery-migrate-1.1.0.js"></script>
<!--[if lt IE 9]>
<script src="style_js/json2.js"></script>
<![endif]-->
<script src="style_js/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script type="text/javascript" src="style_js/artDialog/jquery.artDialog.js"></script>
<script type="text/javascript" src="style_js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="style_js/Validation/jquery.validationEngine-zh_CN.js"></script>
<script type="text/javascript" src="style_js/Validation/jquery.validationEngine.js"></script>
<script type="text/javascript" src="style_js/Qscript.js"></script>
<script type="text/javascript">
    var SendData = {
        url: '/Tower/Json?businesstype=ground.tower.case.accept.manage',
        url_config: "/Tower/Json?businesstype=ground.tower.system.pageconfig.manage&labid=22",
        listcolumns: [],
        samplestrings: "",
        samplestringe: "",
        barcodes: "",
        barcodee: ""
    };

    $(function () {
        jQuery("#formsearch").validationEngine({
            promptPosition: "centerRight"
        });
        SendData.listcolumns = SetColumns("22", "acceptsamplelist");
        $("#divToolbar").ligerToolBar({
            items: [
                {text: '验收', id: 'accept', display: 'block', click: menuclick, icon: 'accept'},
                {line: true},
                {text: '刷新', id: 'refresh', display: 'block', click: menuclick, icon: 'refresh'}
            ]
        });

        SendData.$divGrid = $("#divGrid").ligerGrid({
            root: 'Rows',
            dataAction: 'local',
            columns: [
                {display: '批编号', name: 'batchnum', align: 'left', width: 150},
                {display: '递送单号', name: 'batchnum', align: 'left', width: 120},
                {display: '数量', name: 'subnum', align: 'left'},
                {display: '部门名称', name: 'departmentname', align: 'left'},
                {display: '递送人', name: 'employeename', align: 'left'},
                {display: '递送时间', name: 'operattime', align: 'left', width: 300}
            ],
            url: encodeURI(SendData.url + '&typeid=search&departmentid=5'),
            height: '99%',
            rownumbers: true,
            frozen: false,
            usePager: false,
            allowHideColumn: false,
            checkbox: true,
            //columnWidth: 80,
            detail: {onShowDetail: ShowChildrenDetail, height: 'auto'}
        });
    });

    function ShowChildrenDetail(row, detailPanel, callback) {

        var grid = document.createElement('div');

        var listcolumns = [];
        $.extend(true, listcolumns, SendData.listcolumns);
        $(detailPanel).append(grid);
        $(grid).css('margin', 5).ligerGrid({
            showToggleColBtn: false,
            root: 'Rows',
            dataAction: 'local',
            columns: listcolumns,
            //width: '93%',
            // height:'100%',
            rownumbers: true,
            frozen: false,
            usePager: false,
            onDblClickRow: null,
            allowHideColumn: false,
            url: encodeURI(SendData.url + '&typeid=samplelist&batchid=' + row.batchid + '&samplestrings=' + SendData.samplestrings + '&samplestringe=' + SendData.samplestringe + "&barcodes=" + SendData.barcodes + "&barcodee=" + SendData.barcodee),
            showTitle: false,
            columnWidth: 80
        });
    }

    function menuclick(item) {
        switch (item.id) {
            case "accept":
                ShowSendlist();
                break;
            case "refresh":
                SendData.samplestringe = "";
                SendData.samplestrings = "";
                SendData.barcodes = "";
                SendData.barcodee = "";
                SetNoCheckAllLiger("divGrid");
                RefreshList(SendData.$divGrid, SendData.url, {typeid: "search", departmentid: "5"});
                break;
        }
    }

    function ShowSendlist() {
        var rows = SendData.$divGrid.getCheckedRows();
        var batchid = [];
        var SendSearchData = {};
        if (!rows || (rows && rows.length == 0)) {
            $.dialog.alert("未选择批! ");
            return;
        }
        $(rows).each(function () {
            batchid.push(this.batchid);
        });
        batchid = batchid.join(',');
        SendSearchData = {
            //batchid:batchid,
            samplestrings: SendData.samplestrings,
            samplestringe: SendData.samplestringe,
            barcodes: SendData.barcodes,
            barcodee: SendData.barcodee,
            listcolumns: SendData.listcolumns
        }
        $.dialog.data('SendSearchData', SendSearchData);
        $.dialog.open('/Tower/cs/page_sendaccept_accept_sample_list.html?batchid=' + batchid, {
            title: "验收样本",
            width: '90%',
            height: '95%',
            lock: true
        });
    }


    function TableSearch() {
        if (!$('#formsearch').validationEngine('validate')) return;
        SendData.samplestrings = $("#samplestrings").val().trim();
        SendData.samplestringe = $("#samplestringe").val().trim();
        SendData.barcodes = $("#barcodes").val().trim();
        SendData.barcodee = $("#barcodee").val().trim();
        SetNoCheckAllLiger("divGrid");
        RefreshList(SendData.$divGrid, SendData.url, {
            typeid: "search",
            departmentid: "5",
            samplestrings: SendData.samplestrings,
            samplestringe: SendData.samplestringe,
            barcodes: SendData.barcodes,
            barcodee: SendData.barcodee
        });

    }

</script>


<div style="display: none; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; cursor: move; opacity: 0; background: rgb(255, 255, 255);"></div>
</body>
</html>
